#!/bin/bash

export CHIP_INCLUDES="\
 -I${LITOS_PROJECT_DIR}/bsp/${LITOS_CHIP}/STM32F4xx_HAL_Driver/Inc\
 -I${LITOS_PROJECT_DIR}/bsp/${LITOS_CHIP}/CMSIS/Device/ST/STM32F4xx/Include\
 -I${LITOS_PROJECT_DIR}/bsp/${LITOS_CHIP}/CMSIS/Include\
 -I${LITOS_PROJECT_DIR}/bsp/${LITOS_CHIP}/lt_drivers\
 -I${LITOS_PROJECT_DIR}/bsp/${LITOS_CHIP}"

export CHIP_DEFINES="-DUSE_FULL_LL_DRIVER\
 -DHSE_VALUE=8000000\
 -DHSE_STARTUP_TIMEOUT=100\
 -DLSE_STARTUP_TIMEOUT=5000\
 -DLSE_VALUE=32768\
 -DEXTERNAL_CLOCK_VALUE=8000000\
 -DHSI_VALUE=16000000\
 -DLSI_VALUE=32000\
 -DVDD_VALUE=3300\
 -DPREFETCH_ENABLE=1\
 -DINSTRUCTION_CACHE_ENABLE=1\
 -DDATA_CACHE_ENABLE=1\
 -DSTM32F405xx"

CPU="-mcpu=cortex-m4"
# fpu
FPU="-mfpu=fpv4-sp-d16"
# float-abi
FLOAT="-mfloat-abi=hard"
# mcu
export CHIP_CPU_FLAG="${CPU} -mthumb ${FPU} ${FLOAT}"

